{% load blog_tags %}
<!DOCTYPE html>
<html>
<head>
    <title>Black &amp; White-{{ title }}</title>
    <!-- meta -->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- css -->
    <!-- css -->
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    <link rel="stylesheet" href="/static/css/pace.css">
    <link rel="stylesheet" href="/static/css/custom.css">

    {# markdown代码高亮 #}
    <link rel="stylesheet" href="/static/css/highlights/github.css">

    <!-- js -->
    <script src="/static/js/jquery-2.1.3.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <script src="/static/js/pace.min.js"></script>
    <script src="/static/js/modernizr.custom.js"></script>
    {% block head %}
        {# 头部不一样的部分 #}
    {% endblock %}
</head>

<body>

<div class="container">
    <header id="site-header">
        <div class="row">
            <div class="col-md-4 col-sm-5 col-xs-8">
                <div class="logo">
                    <h1><a href=""><b>Black</b> &amp; White</a></h1>
                </div>
            </div><!-- col-md-4 -->
            <div class="col-md-8 col-sm-7 col-xs-4">
                <nav class="main-nav" role="navigation">
                    <div class="navbar-header">
                        <button type="button" id="trigger-overlay" class="navbar-toggle">
                            <span class="ion-navicon"></span>
                        </button>
                    </div>

                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav navbar-right">
                            <li class="cl-effect-11"><a href="/" data-hover="首页">首页</a></li>
                            <li class="cl-effect-11"><a href="/full_1/" data-hover="博客">博客</a></li>
                            <li class="cl-effect-11"><a href="/about/" data-hover="关于">关于</a></li>
                            <li class="cl-effect-11"><a href="#" data-hover="联系">联系</a></li>
                        </ul>
                    </div><!-- /.navbar-collapse -->
                </nav>
                <div id="header-search-box">
                    <a id="search-menu" href="#"><span id="search-icon" class="ion-ios-search-strong"></span></a>
                    <div id="search-form" class="search-form">
                        <form role="search" method="get" id="searchform" action="#">
                            <input type="search" placeholder="搜索" required>
                            <button type="submit"><span class="ion-ios-search-strong"></span></button>
                        </form>
                    </div>
                </div>
            </div><!-- col-md-8 -->
        </div>
    </header>
</div>


<div class="content-body">
    <div class="container">
        <div class="row">
        <main class="col-md-8">
            {% block content %}


            {% endblock %}
            {% block comment %}


            {% endblock %}
        </main>
            {% if show_right %}
                <aside class="col-md-4">
{#                    {% if catalog %}#}
{#                        <div class="widget widget-content">#}
{#                    <h3 class="widget-title">文章目录</h3>#}
{#                    <ul>#}
{#                        <li>#}
{#                            <a href="#1">大概功能</a>#}
{#                        </li>#}
{#                        <li>#}
{#                            <a href="#2">具体使用</a>#}
{#                        </li>#}
{#                        <li>#}
{#                            <a href="#3">注意事项</a>#}
{#                        </li>#}
{##}
{#                    </ul>#}
{#                </div>#}
{#                    {% endif %}#}
                    <div class="widget widget-recent-posts">
                        <h3 class="widget-title">最新文章</h3>
                        {% get_recent_article as recent_article_list %}
                        <ul>
                            {% for article in recent_article_list %}
                                <li>
                                    <a href="/details_{{ article.id }}/">{{ article.title }}</a>
                                </li>
                            {% empty %}
                                暂无最新文章！
                            {% endfor %}

                        </ul>
                    </div>
                    <div class="widget widget-archives">
                        <h3 class="widget-title">归档</h3>
                        {% archives as date_list %}
                        <ul>
                            {% for date in date_list %}
                                <li>
                                    <a href="#">{{ date.year }} 年 {{ date.month }} 月</a>
                                </li>
                            {% empty %}
                                暂无归档！
                            {% endfor %}
                        </ul>
                    </div>

                    <div class="widget widget-category">
                        <h3 class="widget-title">分类</h3>
                        {% get_categories as category_list %}
                        <ul>
                            {% for category in category_list %}
                                <li>
                                    <a href="#">{{ category.name }} <span class="post-count">()</span></a>
                                </li>
                            {% empty %}
                                暂无分类！
                            {% endfor %}
                        </ul>
                    </div>

                    <div class="widget widget-tag-cloud">
                        <h3 class="widget-title">标签云</h3>
                        {% get_tags as tag_list %}
                        <ul>
                            {% for tag in tag_list %}
                                <li>
                                    <a href="#">{{ tag.name }}</a>
                                </li>
                            {% endfor %}
                        </ul>
                    </div>
                    <div class="rss">
                        <a href=""><span class="ion-social-rss-outline"></span> RSS 订阅</a>
                    </div>
                </aside>
            {% endif %}

        </div>
    </div>
</div>


<footer id="site-footer">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <p class="copyright">&copy 2017 - 采集自<a href="http://www.cssmoban.com/"
                                                        target="_blank" title="模板之家">模板之家</a>
                    - 由<a href="http://zmrenwu.com/" title="网页模板" target="_blank">追梦人物的博客</a>修改
                </p>
            </div>
        </div>
    </div>
</footer>

<!-- Mobile Menu -->
<script src="/static/js/script.js"></script>

</body>
</html>
